package com.yudedu.hospital.mapper;
import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;
import com.yudedu.hospital.entity.Appointment;

@Service
public interface AppointmentMapper {
	
	
	
//	public void edit(@Param("password")String renewpass,@Param("id")int id);

	List<Appointment> query(int user_id);

	void deleAppointment(int id);

	void addAppointment(@Param("hospitalName")String hospitalName,@Param("address")String address,@Param("tele")String tele,@Param("departments")String departments,@Param("doctor")String doctor,
			@Param("date")String date,@Param("email")String email,@Param("doctorTele")String doctorTele,@Param("user_id")int user_id);
	void editAppointment(@Param("id")int id,@Param("hospitalName")String hospitalName,@Param("address")String address,@Param("tele")String tele,@Param("departments")String departments,@Param("doctor")String doctor,
			@Param("date")String date,@Param("email")String email,@Param("doctorTele")String doctorTele);

}
